<?php
namespace app\common\validate;

use think\Validate;

class NoticeValidate extends Validate
{
    protected $rule =   [
        'send_type|发送类型' => 'require|number',
        'title|标题'         => 'require|length:1,200',
        'content|内容'       => 'require',
    ];
    
    protected $scene = [
        /** admin */
        'add'    => ['send_type', 'title', 'content'],
    ];
}